@import '@/styles/common/variables.scss';
// 主要用于产品列表页、产品详情页、购买弹窗的公共样式

// 产品详情页顶部右侧 于 购买弹窗样式差不多
.buyDialog_word, //购买弹窗
.basicData .basic{ // 产品详情页
  .title{
   color: #363434;
   font-size: 24px; 
   font-weight: bold;
   text-align: left;
   white-space: pre-wrap;
  }
  .subTitle{
    font-size: 14px;
    color: #7E7E7E;
    margin-bottom: 4px;
  }
  .comment{
    display: flex;
    font-size: 14px;
    margin-top: 8px;
    margin-bottom: 8px;
    padding: 0 ;
    cursor: pointer;
    .el-rate__text{
      color: $rateColor !important;
    }
    .el-rate__icon{
      cursor: pointer;
    }
  }
  .category{
    font-size: 14px;
    font-weight: bold;
    color: #363434;
    margin-bottom: 8px;
  }
  .svgIcon{
    margin-right: 24px;
    svg{
      width: 32px;
      height: 32px;
    }
  }
  .colorList{
    margin-bottom: 32px;
    margin-top: 8px;
    >p.color{
      width: 18px;
      height: 18px;
    }
  }
  .specList{
    padding:  0;
    margin-top: 4px;
    .spec {
      padding: 0 24px;
      height: 40px;
      line-height: 40px;
      margin-bottom: 24px;
      margin-right: 24px;
      color: #7E7E7E;
      border-color: #CDCDCD;
      &:hover,
      &.spec_active{
        color: #363434;
        border-color: #363434;
      }
      
      &.diabled{
        border-color: #F2F1F0;
        background-color: #F2F1F0;
        color: #CDCDCD;
        text-decoration: line-through;
      }
    }
  }
  .material_name{
    margin-top: 8px;
    .category{
      margin-bottom: 8px;
    }
    .el-button{
      color: #363434;
      border-color: #363434;
      background-color: #FFFFFF;
    }
  }
  .share{
    // margin: 40px 0 16px;
    margin: 5.3% 0 2.1%;
  }

  .commentContent{
    margin-top: 8px;
    margin-bottom: 40px;
    word-break: break-all;
    white-space: pre-wrap;
  }
  .product_detail_btn{
    margin-top: 32px;
    
    .el-button{
      min-width: 336px;
      color: #CDCDCD;
      padding: 0 24px;
      background:  linear-gradient(#FFEFD5, #FFDBAB);
      border: none;
      &.el-button--search{
        color: #363434;
        background:  linear-gradient(#FFDBAB, #FEBD69);
        cursor: pointer;
        &:hover{
          background:  linear-gradient(#FEBD69, #F3A847);
        }
      }
    }

  }

}

// 进出口样式 列表于详情均用到
.input_container,
.output_container{
  >p{
    color: #363434;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
  }
  div.inputItem,
  div.outputItem{
    width: 96px;
    height: 96px;
    display: inline-block;
    text-align: center;
    border: 1px solid #CDCDCD;
    border-radius: 4px ;
    margin-right: 24px;
    margin-bottom: 24px;
    overflow: hidden;
    cursor: pointer;
    vertical-align: top;
    font-size: 0;
    padding: 15px 0 ;
    &:hover,
    &.active{
      border-color: #363434;
      p{
        color: #363434;
      }
    }
    &.disabled{
      border-color: #F2F1F0;
      background-color: #F2F1F0;
      cursor: not-allowed;
      >p{
        color: #CDCDCD;
      }
      .el-image{
        opacity: 0.3;
      }
    }
    
    .el-image{
      max-height: 40px;
      min-width: 40px;
      margin-top: 0px;
      img{
        object-fit: contain;
        height: 40px;
        width: auto;
      }
      .el-image__error{
        height: 40px;
        width: 40px;
      }
    }
    p{
      color: #7E7E7E;
      font-size: 14px;
      padding: 0 4px;
      white-space: nowrap;
      text-overflow: ellipsis;
      overflow: hidden ;
      margin-top: 8px;
    }
  }



}
// 手机端 产品详情页评论 与评论列表评论一致
.detailComment,
.main #reviews .commentList.phoneShow{ // 产品详情页 评论
    .commentItem{
      padding: 16px 20px 16px;
      .comment_rate_name{ // 评论人+星星
        display: flex;
        justify-content: flex-start;
        align-items: center;
        margin-bottom: 2px;
        height: 22px;
        .name{
          font-size: 14px;
          color: #363434;
        }
        .el-rate{
          margin-left: 4px;
          .el-rate__icon{
            font-size: 14px;
            margin-right: -1px;
          }
        }
      }
      .comment_attributes_time{ // 参数+时间
        font-size: 12px;
        color: #CDCDCD;
        margin-bottom: 8px;
        display: flex;
        justify-content: space-between;
        align-items: center;
      }
      .commentTitle{ // 评论标题
        color: #363434;
        font-size: 14px;
        margin-bottom: 2px;
      }
      .commentContent{ // 评论内容
        margin-bottom: 12px;
        color: #7E7E7E;
        font-size: 14px;
      }
      .image_container{
        .image{
          width: calc(25% - 10px);
          padding-bottom: calc(25% - 10px);
          height: 0;
          background-repeat: no-repeat;
          background-size: cover;
          display: inline-block;
          margin-right: 10px;
          margin-bottom: 10px;
        }
      }
    }
  
}
